home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / library / reqtlsdv.lha / ReqTools / Glue / GCC / README < prev   
Text File  |  1994-04-21  |  2KB  |  28 lines

  1. This is an revised reqtools support for gcc. The libraries are based on the
  2. original glue source for SAS/C supplied with reqtools. These source files
  3. had been converted to gcc to achive the same functionality. The archive
  4. contains the normal and baserelative library. The former distribution lacked
  5. the baserelative library because of an misbehavior of gcc using the option
  6. '-fbaserel'. GCC prunes a4 from the list of registers to save because this
  7. register should always contain the base pointer. So if we call rtEZRequestA()
  8. a4 gets trashed and the result is known. This problem is solved with this
  9. distribution because of the use of assembler stubs. The libraries were
  10. created using gcc2.3.3. I also tried gcc2.5.7 and it worked. The demo program
  11. included can be compiled with both versions (all nessecary files supplied).
  12.  
  13. TECHNICAL NOTE: Hook support is done with an external stub in libsup.a called
  14. 'main_filter_func()'. This stub fetches all registers on the stack and calls
  15. the highlevel function stored in hook.h_SubEntry. a4 will be loaded if this is
  16. nessecary.
  17.  
  18. NOTE: Don't change the suffix of the assmbler files. GCC relys on the case
  19. of the suffix. So .s and .S are NOT the same. The lowercase .s is a normal
  20. assembler source and the uppercase .S indicates an assembler file to be
  21. preprocessed (needed!!!).
  22.  
  23. LEGAL DISCLAIMER
  24.  
  25.    I tested the stubs and the demo program worked well with them either with
  26.    or without hook support (but the demo doesn't use all functions) so use
  27.    the libaries at your own risk.
  28.